<?xml version="1.0" encoding="UTF-8"?>
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	template="/WEB-INF/templates/business/supplier/template.xhtml"
>

	<f:metadata>
		<f:viewParam name="firstResult" value="#{supplierNotReceivedTradeList.firstResult}"></f:viewParam>
		<f:viewParam name="projectName" value="#{supplierNotReceivedTradeList.parameterValues['projectName']}"></f:viewParam>
   		<f:viewParam name="serialNumber" value="#{supplierNotReceivedTradeList.parameterValues['serialNumber']}"></f:viewParam>	
		
	</f:metadata>

	<ui:define name="supplier_content">

		<h:form id="searchForm">
			
			<!--右侧我收到的项目邀请-->
			<div class="iethbox_tit">
				<h2>我未收到的项目邀请</h2>
				<ui:remove>
					<span>
						<p:link outcome="/index.xhtml" value="平台首页"></p:link>					
						&gt;我未收到的项目邀请
					</span>
				</ui:remove>
			</div>
			<div class="iethbox_area">				
				<p:outputLabel value="项目名称"></p:outputLabel>				
				<p:inputText value="#{supplierNotReceivedTradeList.parameterValues['projectName']}"></p:inputText>
				
				<p:outputLabel value="项目编号"></p:outputLabel>				
				<p:inputText value="#{supplierNotReceivedTradeList.parameterValues['serialNumber']}"></p:inputText>
				
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="NotReceivedTradeList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="NotReceivedTradeList.xhtml"></p:button>
				</div>				
				
				<div class="clearbt"></div>
			</div>

			<!--tab切换开始-->
			<!--采购公告、中选公告开始-->
			
			<div class="iethbox_table">
				<p:dataTable
					value="#{supplierNotReceivedTradeList.resultList}"
					var="_trade"
				>

					<p:column styleClass="blue_c">
						<f:facet name="header">服务采购编号</f:facet>
						#{_trade.bulletin.serialNumber}
					</p:column>
	
					<p:column>
							<f:facet name="header">公告名称</f:facet>
						#{_trade.bulletin.title}
					</p:column>
	
					<p:column>
							<f:facet name="header">选取方式</f:facet>
						#{_trade.bulletin.wayOfChoose.typeName}
					</p:column>
	
					<p:column>
							<f:facet name="header">采购人</f:facet>
						#{_trade.bulletin.buyer.cnname}
					</p:column>
	
					<p:column>
						<f:facet name="header">报名截至日期</f:facet>
						<h:outputText value="#{_trade.bulletin.endingApplyTime}">
							<f:convertDateTime pattern="yyyy-MM-dd HH:mm" />
						</h:outputText>
					</p:column>
	
					<p:column style="text-align: center">
						<f:facet name="header">操作</f:facet>
						<h:button outcome="apply.xhtml" value="我要报名" styleClass="yellow-int">
							<f:param
								name="tradeId"
								value="#{_trade.id}"
							></f:param>
							<f:param
								name="bulletinId"
								value="#{_trade.bulletin.id}"
							></f:param>
						</h:button>
					</p:column>
				</p:dataTable>
				<!--页码开始-->
				<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
					<ui:param
						name="entityList"
						value="#{supplierNotReceivedTradeList}"
					/>
				</ui:include>
				<!--页码结束-->
			</div>					
				
			<!--采购公告、中选公告结束-->
			
			<ui:remove>
				<p:panel id="searchResult">
					
				</p:panel>

				<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
					<ui:param
						name="entityList"
						value="#{supplierNotReceivedTradeList}"
					/>
				</ui:include>
			</ui:remove>
		</h:form>

	</ui:define>
</ui:composition>
